package com.ctg.payroll2.dao.payment.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ctg.payroll2.bean.filter.payment.PbSysfunctionFilter;
import com.ctg.payroll2.dao.payment.PbSysfunctionDao;
import com.ctg.platform.orm.ibatis.IbatisEntityDao;
import com.ctg.platform.util.Page;

public class PbSysfunctionDaoImp extends IbatisEntityDao implements PbSysfunctionDao {
	private Log logger = LogFactory.getLog(this.getClass());
	@SuppressWarnings("unchecked")
	public Page getPbSysfunctionListByType(PbSysfunctionFilter filter){
		return pagedQueryByFilter(this.getClass(), filter,
				".getPbSysfunctionListByType_count",
				".getPbSysfunctionListByType_query");
	}
	
	@SuppressWarnings("unchecked")
	public Page querypbSysfunctionBySocialItem(PbSysfunctionFilter filter){
		return pagedQueryByFilter(this.getClass(), filter,
				".querypbSysfunctionBySocialItem_count",
				".querypbSysfunctionBySocialItem_query");
	}
	
	@SuppressWarnings("unchecked")
	public Page querypbSysfunctionBySocialType(PbSysfunctionFilter filter){
		return pagedQueryByFilter(this.getClass(), filter,
				".querypbSysfunctionBySocialType_count",
				".querypbSysfunctionBySocialType_query");
	}
	@SuppressWarnings("unchecked")
	public Page querypbSysfunctionByNullMemo(PbSysfunctionFilter filter){
		Page page = pagedQueryByFilter(this.getClass(), filter,
				".querypbSysfunctionBySocial_count",
		".querypbSysfunctionByNullMemo_query");
		System.out.println("");
		return page;
	}
	
	private String getNameSpace(){
		return this.getClass().getSimpleName();
	}
}
